testsuite: Disable some tests for older glib
authorBenjamin Otte <otte@redhat.com>
Mon, 17 Sep 2018 02:29:40 +0000 (04:29 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Sep 2018 02:30:28 +0000 (04:30 +0200)
testsuite/gtk/sortlistmodel.c

index d2cb9fe7c3379f6982b2c4da3fbd5c5ca4db42a1..31a6711f04fccbc82bde31ab4795dcd426cd0513 100644 (file)
@@ -394,8 +394,10 @@ main (int argc, char *argv[])
   g_test_add_func ("/sortlistmodel/create", test_create);
   g_test_add_func ("/sortlistmodel/set-model", test_set_model);
   g_test_add_func ("/sortlistmodel/set-sort-func", test_set_sort_func);
+#if GLIB_CHECK_VERSION (2, 58, 0) /* g_list_store_splice() is broken before 2.58 */
   g_test_add_func ("/sortlistmodel/add_items", test_add_items);
   g_test_add_func ("/sortlistmodel/remove_items", test_remove_items);
+#endif
 
   return g_test_run ();
 }